package com.starmark.gateway.project.provider.mapper;

import com.starmark.core.framework.base.SuperMapper;
import com.starmark.gateway.project.provider.entity.GatewayRoute;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author starmark
 * @since 2020-03-17
 */
@Mapper
public interface GatewayRouteMapper extends SuperMapper<GatewayRoute> {

    /**
     * 删除应用下的全部路由
     * @param appId 应用ID
     */
    @Delete("delete from gateway_route where app_id =#{appId}")
    void deleteRouteByAppId(@Param("appId") String appId);
}